<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Binary Large Object Support</title>
    <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
    <link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
    <link rel="up" href="upgrade_60_toc.html" title="Chapter 11.  Upgrading Berkeley DB 11.2.5.3 applications to Berkeley DB 12.1.6.0" />
    <link rel="prev" href="upgrade_60_toc.html" title="Chapter 11.  Upgrading Berkeley DB 11.2.5.3 applications to Berkeley DB 12.1.6.0" />
    <link rel="next" href="rep_views.html" title="Replication Views" />
  </head>
  <body>
    <div xmlns="" class="navheader">
      <div class="libver">
        <p>Library Version 12.1.6.2</p>
      </div>
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">Binary Large Object Support</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="upgrade_60_toc.html">Prev</a> </td>
          <th width="60%" align="center">Chapter 11.  Upgrading Berkeley DB 11.2.5.3 applications to Berkeley DB 12.1.6.0 </th>
          <td width="20%" align="right"> <a accesskey="n" href="rep_views.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h2 class="title" style="clear: both"><a id="blob-support"></a>Binary Large Object Support</h2>
          </div>
        </div>
      </div>
      <div class="toc">
        <dl>
          <dt>
            <span class="sect2">
              <a href="blob-support.html#idm140188017259792">New Functions</a>
            </span>
          </dt>
          <dt>
            <span class="sect2">
              <a href="blob-support.html#idm140188017241136">New Flags Accepted by Blob Streaming Interfaces</a>
            </span>
          </dt>
          <dt>
            <span class="sect2">
              <a href="blob-support.html#idm140188017246176">Other New Flags</a>
            </span>
          </dt>
          <dt>
            <span class="sect2">
              <a href="blob-support.html#idm140188017244096">New Pragma</a>
            </span>
          </dt>
        </dl>
      </div>
      <p> 
            Berkeley DB now has improved facilities for managing
            binary large objects (blobs). There is a new streaming
            interface to efficiently read and write blobs. There are
            new configuration interfaces to set an optional size
            threshold above which an object is created as a blob, and
            to manage the location of blob storage. A new SQL pragma
            enables SQL users to set a similar optional size threshold
            above which rows are stored internally in Berkeley DB as
            blobs.
        </p>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="idm140188017259792"></a>New Functions</h3>
            </div>
          </div>
        </div>
        <div class="itemizedlist">
          <ul type="disc">
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbstream.html" class="olink">DBC-&gt;db_stream()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbstream_close.html" class="olink">DB_STREAM-&gt;close()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbstream_read.html" class="olink">DB_STREAM-&gt;read()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbstream_size.html" class="olink">DB_STREAM-&gt;size()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbstream_write.html" class="olink">DB_STREAM-&gt;write()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/envset_blob_threshold.html" class="olink">DB_ENV-&gt;set_blob_threshold()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/envget_blob_threshold.html" class="olink">DB_ENV-&gt;get_blob_threshold()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/set_blob_threshold.html" class="olink">DB-&gt;set_blob_threshold()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/get_blob_threshold.html" class="olink">DB-&gt;get_blob_threshold()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/envset_blob_dir.html" class="olink">DB_ENV-&gt;set_blob_dir()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/envget_blob_dir.html" class="olink">DB_ENV-&gt;get_blob_dir()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/set_blob_dir.html" class="olink">DB-&gt;set_blob_dir()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/get_blob_dir.html" class="olink">DB-&gt;get_blob_dir()</a>
              </code>
            </li>
          </ul>
        </div>
      </div>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="idm140188017241136"></a>New Flags Accepted by Blob Streaming Interfaces</h3>
            </div>
          </div>
        </div>
        <div class="itemizedlist">
          <ul type="disc">
            <li><a href="../api_reference/C/dbstream.html#blobs_DB_STREAM_READ" class="olink">DB_STREAM_READ</a> — accepted by
                    <a href="../api_reference/C/dbstream.html" class="olink">DBC-&gt;db_stream()</a></li>
            <li><a href="../api_reference/C/dbstream.html#blobs_DB_STREAM_WRITE" class="olink">DB_STREAM_WRITE</a> — accepted by
                    <a href="../api_reference/C/dbstream.html" class="olink">DBC-&gt;db_stream()</a></li>
            <li><a href="../api_reference/C/dbstream.html#blobs_DB_STREAM_SYNC_WRITE" class="olink">DB_STREAM_SYNC_WRITE</a> — accepted by
                    <a href="../api_reference/C/dbstream.html" class="olink">DBC-&gt;db_stream()</a> and <a href="../api_reference/C/dbstream_write.html" class="olink">DB_STREAM-&gt;write()</a></li>
          </ul>
        </div>
      </div>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="idm140188017246176"></a>Other New Flags</h3>
            </div>
          </div>
        </div>
        <div class="itemizedlist">
          <ul type="disc">
            <li><a href="../api_reference/C/dbt.html#dbt_DB_DBT_BLOB" class="olink">DB_DBT_BLOB</a> — Used on the data DBT
                    accepted by <a href="../api_reference/C/dbput.html" class="olink">DB-&gt;put()</a> and <a href="../api_reference/C/dbcput.html" class="olink">DBC-&gt;put()</a> to indicate that
                    the DBT is a blob.
                </li>
            <li><a href="../api_reference/C/envlog_set_config.html#log_set_config_DB_LOG_BLOB" class="olink">DB_LOG_BLOB</a> — Accepted by
                    <a href="../api_reference/C/envlog_set_config.html" class="olink">DB_ENV-&gt;log_set_config()</a> and <a href="../api_reference/C/envlog_get_config.html" class="olink">DB_ENV-&gt;log_get_config()</a> to
                    indicate full logging of blobs.
                </li>
          </ul>
        </div>
      </div>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="idm140188017244096"></a>New Pragma</h3>
            </div>
          </div>
        </div>
        <div class="itemizedlist">
          <ul type="disc">
            <li>
              <code class="literal">PRAGMA large_record_opt[=n]</code>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="upgrade_60_toc.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="upgrade_60_toc.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="rep_views.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">Chapter 11.  Upgrading Berkeley DB 11.2.5.3 applications to Berkeley DB 12.1.6.0  </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> Replication Views</td>
        </tr>
      </table>
    </div>
  </body>
</html>
